package com.seeyon.apps.relocationData.dao.impl;

import com.seeyon.apps.relocationData.dao.RelocationDao;
import com.seeyon.ctp.common.log.CtpLogFactory;
import com.seeyon.ctp.util.JDBCAgent;
import org.apache.commons.logging.Log;

import java.util.Map;

public class RelocationDaoImpl implements RelocationDao {

    private static final Log log = CtpLogFactory.getLog(RelocationDao.class);

    @Override
    public void delDqDbFromDateByNo(Map<String, Object> param) {
        JDBCAgent agent = new JDBCAgent(false, false);
        try {
            String sql = "delete from " + param.get("tableName") + " where " + param.get("noFie")+"=:no";
            agent.executeNamedSql(sql, param);
        }catch (Exception e){
            log.error("删除动迁流程表信息异常！！！", e);
        }finally {
            agent.close();
        }
    }

    @Override
    public boolean checkRelocation(String relocationData) {
        return false;
    }
}
